package com.wht.domain;

import lombok.Data;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import java.util.*;

/**
 * @author wanghaotian
 * time:2022/11/29,0029 14:53
 * description:
 */
@Data
public class User {
    private int id;
    private String name;
    private char sex;
    private Date date;
    private List list;
    private Set set;
    private Map map;
    private Properties properties;
    private Student student;
    private String[] strings;

    @PostConstruct //初始化
    public void init(){
        System.out.println("init method executed");
    }

    @PreDestroy //销毁
    public void destroy(){
        System.out.println("destroy method executed");
    }
}
